<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <c:url var="action" value="/ivan" />
	<h1>Edit Message</h1>
	
   <form action="${action}/edit?id=${messageAttribute.messageid}" method="post">
	   	<input type ="hidden" name ="accountid" id ="accountid" value ="${messageAttribute.accountid}">
	   	<input type ="hidden" name ="messageid" id ="messageid" value ="${messageAttribute.messageid}">
	   	<textarea name="message" id="message" rows="8" cols = "60">${messageAttribute.message}</textarea>
		<br><br>
	   	<input type="submit" name="action" id="action" value="Save message" />
   </form>
